<template>
  <div>
    <!--最外层容器-->
    <el-container>
      <!--上半部分：顶栏-->
      <el-header class="layout-header">
        <h1>酷鲨商城运营管理平台</h1>
      </el-header>
      <!--下半部分：容器-->
      <el-container class="layout-body">
        <!--下半部分的左侧边栏-->
        <el-aside class="layout-aside">
          <el-menu
              router
              :default-active="$router.currentRoute.path"
              class="el-menu-vertical-demo"
              background-color="#222c32"
              text-color="#fff"
              active-text-color="#ffd04b">
            <!--首页-->
            <el-menu-item :disabled="true">
              <i class="el-icon-s-home"></i>
              <span>主页</span>
            </el-menu-item>
            <!--临时页面-->
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>临时页面</span>
              </template>
              <el-menu-item index="/sys-admin/temp/admin/add-new">
                <i class="el-icon-circle-plus"></i>
                <span>添加管理员</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/temp/admin/list">
                <i class="el-icon-s-operation"></i>
                <span>管理员列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>相册管理</span>
              </template>
              <el-menu-item index="/sys-admin/temp/album/add-new">
                <i class="el-icon-circle-plus"></i>
                <span>添加相册</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/temp/album/list">
                <i class="el-icon-s-operation"></i>
                <span>相册列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>属性模版管理</span>
              </template>
              <el-menu-item index="/sys-admin/temp/attribute-template/add-new">
                <i class="el-icon-circle-plus"></i>
                <span>添加属性模版</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/temp/attribute-template/list">
                <i class="el-icon-s-operation"></i>
                <span>属性模版列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>品牌管理</span>
              </template>
              <el-menu-item index="/sys-admin/temp/brand/add-new">
                <i class="el-icon-circle-plus"></i>
                <span>添加品牌</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/temp/brand/list">
                <i class="el-icon-s-operation"></i>
                <span>品牌列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="6">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span>类别管理</span>
              </template>
              <el-menu-item index="/sys-admin/temp/category/add-new">
                <i class="el-icon-circle-plus"></i>
                <span>添加类别</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/temp/category/list">
                <i class="el-icon-s-operation"></i>
                <span>类别列表</span>
              </el-menu-item>
            </el-submenu>

            <!-- 商品管理 -->

            <!-- 订单管理 -->

            <!-- 营销管理 -->

            <!-- 商家管理 -->

            <!-- 权限管理 -->

          </el-menu>
        </el-aside>
        <!--下半部分的主体-->
        <el-main class="layout-main">
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
.layout-header {
  background-color: #1684b8;
}
.layout-header h1 {
  color: white;
  line-height: 60px;
}
.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
}
.layout-main {
  background-color: #fff !important;
}
.layout-aside {
  background-color: #222c32;
}
.layout-aside i {
  color: #fff !important;
}
.el-menu-item.is-active {
  background-color: #2d3c4d !important;
}
</style>

<script>

</script>
